package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.AssetCollectionRecordEnclosure;
import com.tiger.project.mapper.AssetCollectionRecordEnclosureMapper;
import com.tiger.project.service.IAssetCollectionRecordEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【租金进账附件】Service业务层处理
 *
 * @author standard
 * @date 2022-10-08
 */
@Service
public class AssetCollectionRecordEnclosureServiceImpl implements IAssetCollectionRecordEnclosureService {
    @Autowired
    private AssetCollectionRecordEnclosureMapper assetCollectionRecordEnclosureMapper;

    /**
     * 查询【租金进账附件】
     *
     * @param id 【租金进账附件】主键
     * @return 【租金进账附件】
     */
    @Override
    public AssetCollectionRecordEnclosure selectAssetCollectionRecordEnclosureById(Long id) {
        return assetCollectionRecordEnclosureMapper.selectAssetCollectionRecordEnclosureById(id);
    }

    /**
     * 查询【租金进账附件】列表
     *
     * @param assetCollectionRecordEnclosure 【租金进账附件】
     * @return 【租金进账附件】
     */
    @Override
    public List<AssetCollectionRecordEnclosure> selectAssetCollectionRecordEnclosureList(AssetCollectionRecordEnclosure assetCollectionRecordEnclosure) {
        return assetCollectionRecordEnclosureMapper.selectAssetCollectionRecordEnclosureList(assetCollectionRecordEnclosure);
    }

    /**
     * 新增【租金进账附件】
     *
     * @param assetCollectionRecordEnclosure 【租金进账附件】
     * @return 结果
     */
    @Override
    public int insertAssetCollectionRecordEnclosure(AssetCollectionRecordEnclosure assetCollectionRecordEnclosure) {
        return assetCollectionRecordEnclosureMapper.insertAssetCollectionRecordEnclosure(assetCollectionRecordEnclosure);
    }

    /**
     * 修改【租金进账附件】
     *
     * @param assetCollectionRecordEnclosure 【租金进账附件】
     * @return 结果
     */
    @Override
    public int updateAssetCollectionRecordEnclosure(AssetCollectionRecordEnclosure assetCollectionRecordEnclosure) {
        return assetCollectionRecordEnclosureMapper.updateAssetCollectionRecordEnclosure(assetCollectionRecordEnclosure);
    }

    /**
     * 批量删除【租金进账附件】
     *
     * @param ids 需要删除的【租金进账附件】主键
     * @return 结果
     */
    @Override
    public int deleteAssetCollectionRecordEnclosureByIds(Long[] ids) {
        return assetCollectionRecordEnclosureMapper.deleteAssetCollectionRecordEnclosureByIds(ids);
    }

    /**
     * 删除【租金进账附件】信息
     *
     * @param id 【租金进账附件】主键
     * @return 结果
     */
    @Override
    public int deleteAssetCollectionRecordEnclosureById(Long id) {
        return assetCollectionRecordEnclosureMapper.deleteAssetCollectionRecordEnclosureById(id);
    }
}
